package com.hgw.imsever;

import com.hgw.imsever.netty.NettyBootstrap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class ImSeverApplication {
    @Autowired
    private NettyBootstrap nettyBootstrap;


    public static void main(String[] args) {
        SpringApplication.run(ImSeverApplication.class, args);
    }

    @PostConstruct
    public void startNetty() {
        nettyBootstrap.setPort(8888).start();
    }

}
